package com.smartao.base.selectitem;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.smartao.base.selecttype.Selecttype;
import com.smartao.core.service.BaseService;

@Transactional(readOnly=true)
public interface SelectitemService extends BaseService<Selectitem, Long>{
	Selectitem findByCode(String code);

	List<Selectitem> findBySelecttype(Long selecttypeId);

	List<Selectitem> findBySelecttype(Selecttype selecttype);
	
	List<Selectitem> findBySelecttypeCode(String code);
	
	void deleteBySelecttypeId(Long selecttypeId);
	
	Long countBySelecttype(Long selecttypeId);

	List<Selectitem> findByParent(Long parentSelectitemId);
}
